package com.learning.mapper;

import com.learning.entity.Knowledge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 知识点表 Mapper 接口
 * </p>
 *
 * @author itRao
 * @since 2024-05-24
 */
@Mapper
public interface KnowledgeMapper extends BaseMapper<Knowledge> {

    @Select("select id, question_id, knowledge_content from knowledge where question_id = #{questionId}")
    Knowledge queryByQuestionId(Long questionId);
}
